package com.eric.nioclient;

import android.support.v7.app.AppCompatActivity;

import com.eric.nioclient.view.LoadingDialog;

/**
 * Created by eric on 2017/11/17.
 */

public class BaseActivity extends AppCompatActivity {
    public static final String TAG = "eric" ;

    private LoadingDialog loadingDialog;
    public void showLoading(){
        if(loadingDialog == null){
            loadingDialog = new LoadingDialog(this);
        }
        loadingDialog.showLoading();
    }

    public void  hideLoading(){
        if(loadingDialog == null) return;
        loadingDialog.hideLoading();
    }


}
